/* 初始化 start */
button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}
.fix-width {
  margin: auto;
  max-width: 1190px;
  background: #fff;
}
/* 初始化 end */

/* 头部区域 start */
.head-box {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
}
.head-box .title {
  font-size: 20px;
  font-weight: bold;
  color: #dc3023;
}
.shopping-cart-box {
  position: relative;
}
.head-box .shopping-cart {
  width: 100px;
  height: 36px;
  border-radius: 8px;
  font-size: 16px;
  background: #dc3023;
  color: #fff;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  /* position: fixed;
  right: 20px; */
}
#shopping-cart-popup {
  display: none;
  position: absolute;
  right: 0;
  top: 64px;
  background-color: #fff;
  width: 300px;
  height: 300px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}
#shopping-cart-popup .pay-btn {
  width: 200px;
  height: 30px;
  border-radius: 4px;
  font-size: 12px;
  background: linear-gradient(90deg, rgb(255, 119, 0), #dc3023);
  color: #fff;
  text-align: center;
  line-height: 20px;
  display: block;
  margin: auto;
  margin-top: 10px;
}
/* 头部区域 end */

/* 购物车商品列表 start */
#cart-box {
  height: 220px;
  overflow: auto;
  font-size: 12px;
  padding-top: 20px;
}
#cart-box .product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #333;
  padding: 0 16px;
}
#cart-box .product-item .product-name {
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
#cart-box .product-item .product-price {
  color: #dc3023;
  font-weight: bold;
  margin-left: 8px;
  margin-right: 4px;
}
#cart-box .product-item .del-btn {
  width: 50px;
  height: 20px;
  line-height: 20px;
  border-radius: 4px;
  background: #dc3023;
  color: #fff;
  margin-left: 8px;
}
#cart-box .no-data {
  text-align: center;
  color: #ccc;
  margin-top: 80px;
}
/* 购物车商品列表 end */

/* 商品列表 start */
#product-list {
  display: flex;
  flex-wrap: wrap;
  padding-left: 8px;
  box-sizing: border-box;
}
#product-list .product-item {
  padding: 8px;
  box-sizing: border-box;
  margin-right: 8px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
}
#product-list .product-item .product-image {
  width: 210px;
  height: 212px;
  object-fit: cover;
  display: block;
}
#product-list .product-item .product-info-box {
  width: 210px;
  display: flex;
  align-items: center;
  margin-top: 8px;
}
#product-list .product-item .product-info-box .product-name {
  font-size: 12px;
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}
#product-list .product-item .product-info-box .product-price {
  font-size: 14px;
  color: #dc3023;
}
#product-list .product-item .product-info-box .add-cart-btn {
  width: 100px;
  height: 20px;
  border-radius: 4px;
  font-size: 12px;
  background: linear-gradient(90deg, rgb(255, 119, 0), #dc3023);
  color: #fff;
  text-align: center;
  line-height: 20px;
  margin-left: 4px;
}
/* 商品列表  end */

/* 购物车 动效 */

@keyframes cart-animation {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
.animate {
  animation: cart-animation 500ms ease-in-out;
}
.plus {
  position: fixed;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #dc3023;
  border-radius: 50%;
  transition: 0.6s;
}
